<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改学生信息</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <h1>修改学生信息</h1>
    {% with messages = get_flashed_messages() %}
    {% if messages %}
    <ul class="messages">
        {% for message in messages %}
        <li>{{ message }}</li>
        {% endfor %}
    </ul>
    {% endif %}
    {% endwith %}
    <form method="post" action="{{ url_for('edit_student', sno=student.Sno) }}">
        <label for="sname">姓名：</label>
        <input type="text" id="sname" name="sname" value="{{ student.Sname }}" required><br>
        <label for="ssex">性别：</label>
        <input type="text" id="ssex" name="ssex" value="{{ student.Ssex }}" required><br>
        <label for="sage">年龄：</label>
        <input type="number" id="sage" name="sage" value="{{ student.Sage }}" required><br>
        <label for="dno">所属院系：</label>
        <input type="text" id="dno" name="dno" value="{{ student.Dno }}" required><br>
        <label for="sclass">班级：</label>
        <input type="text" id="sclass" name="sclass" value="{{ student.Sclass }}"><br>
        <label for="address">家庭住址：</label>
        <input type="text" id="address" name="address" value="{{ student.address }}"><br>
        <input type="submit" value="保存修改">
    </form>
</body>
</html>